<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Login</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="keywords" content="中国工程物理研究院,工艺,数据平台"/>
    <script type="application/x-javascript"> addEventListener("load", function () {
        setTimeout(hideURLbar, 0);
    }, false);
    function hideURLbar() {
        window.scrollTo(0, 1);
    } </script>
    <!-- Bootstrap Core CSS -->
    <link href="${ctx}/static/css/bootstrap.min.css" rel='stylesheet' type='text/css'/>
    <!-- Custom CSS -->
    <link href="${ctx}/static/css/style.css" rel='stylesheet' type='text/css'/>
    <!-- jQuery -->
    <!----webfonts--->
    <%--<link href='http://fonts.useso.com/css?family=Roboto:400,100,300,500,700,900' rel='stylesheet' type='text/css'>--%>
    <!---//webfonts--->
    <!-- Bootstrap Core JavaScript -->
</head>
<body id="login">
<%--<h2 class="form-heading">电真空工艺管理信息系统</h2>--%>
<div style="position: absolute;z-index: -1;width: 100%;height: 100%">
    <img src="${pageContext.request.contextPath}/static/images/bag.jpg" style="height: 100%;width: 100%" />
</div>
<div class="app-cam" style="height: 100%">
    <table class="login-table">
        <tbody>
        <tr>
            <td>
                <div class="login-wraper">
                    <h1 class="login-label-title">考勤管理系统</h1>
                    <label id="htmlSupport" class="mt10">
                        <a title="Firefox-full-latest.exe" href="${pageContext.request.contextPath}/download/file/Firefox-full-latest.exe">点击安装Firefox浏览器</a>
                    </label>

                    <div class="login-inner">
                        <form class="form-horizontal"
                              action="${pageContext.request.contextPath}/app/api/home/logining"
                              method="post">
                            <input type="hidden" name="loginUrl" value="hydra_easyui/login"/>
                            <input type="hidden" name="indexUrl" value="redirect:index"/>
                            <div class="login-input icon-username mt10">
                                <input type="text" class="text" placeholder="请输入登录名"  name="userNumber" autocomplete="off" />
                            </div>
                            <div class="login-input icon-password mt20">
                                <input type="password" placeholder="请输入密码" name="userPassword" autocomplete="off" />
                            </div>
                            <div class="level">
                                <span class="hydra-lablestyle">${user_err}</span>
                            </div>
                            <div class="submit"><input type="submit" onclick="" value="登  录"></div>
                        </form>
                        <form class="form-horizontal"
                              action="${pageContext.request.contextPath}/app/api/home/ipLogin"
                              method="post">
                            <input type="hidden" name="loginUrl" value="hydra_easyui/login"/>
                            <input type="hidden" name="indexUrl" value="redirect:index"/>
                            <div class="submit"><input type="submit" onclick="" value="ip登录"></div>
                        </form>
                    </div>
                </div>
            </td>
        </tr>
        </tbody>
    </table>
</div>
<script>
    function isHtml5() {
        return !!document.createElement('canvas').getContext;
    }
    function isIE(){
        return navigator.appName == 'Microsoft Internet Explorer';
    }
    if(!isHtml5() || isIE()){
        document.getElementById("htmlSupport").style.display = "block";
    }
</script>
</body>
</html>
